

import request from "@/service/axios/index";

/**@description 菜单相关API */
const menuApi = {
    // 查询菜单列表
    getMenuList: (params) => {
        return request.post({ url: '/system/menu/list', params })
    },
    // 获取菜单详情
    getMenu: (id) => {
        return request.get({ url: '/system/menu/get?id=' + id })
    },
    // 新增菜单
    createMenu: (data) => {
        return request.post({ url: '/system/menu/create', data })
    },
    // 删除菜单
    deleteMenu: (id) => {
        return request.delete({ url: '/system/menu/delete?id=' + id })
    }
}
export default menuApi;